package com.newtouch.bxzs.common.base.em;

/**
 * 保单状态枚举
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2021/1/25 9:42</td>
 * <td>linhongxi</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author linhongxi
 * @version 1.0.0
 * @since 1.0.0
 */
public enum PolicyStateEnum {
	// 有效
	VALID(1, "有效"),
	// 停效
	SUSPENSION(2, "停效"),
	// 终止
	TERMINATION(3, "终止"),
	// 无效
	INVALID(4, "无效"),
	// 已接收
	RECEIVED(5, "已接收"),
	// 核保中
	REVIEW_POLICY(6, "核保中"),
	// 待收费
	WAITING_CHARGE(7, "待收费"),
	// 待签单
	WAITING_SIGN_POLICY(8, "待签单"),
	// 待签收
	WAITING_SIGNED(9, "待签收"),
	// 取消投保
	CANCELED_INSURE(10, "取消投保"),
	// 已承保
	PROMISE_POLICY(11, "已承保");

	/**
	 * 保单状态码
	 */
	private Integer code;
	/**
	 * 保单状态信息
	 */
	private String status;

	/**
	 *
	 * @param code
	 *            枚举码
	 * @param state
	 *            枚举值
	 */
	PolicyStateEnum(Integer code, String state) {
		this.code = code;
		this.status = state;
	}

	public Integer getCode() {
		return code;
	}

	public String getMessage() {
		return status;
	}

}
